//
//  CZEmoticonPageCell.swift
//  61.新工程表情键盘
//
//  Created by apple on 16/3/7.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class CZEmoticonPageCell: UICollectionViewCell {
    
    var indexPath: NSIndexPath? {
        didSet {
            debugLabel.text = "当前显示第\(indexPath!.section)组,第\(indexPath!.item)个cell"
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        prepareUI()
    }
    private func prepareUI() {
        // 添加子控件
        contentView.addSubview(debugLabel)
        // 设置大小
        debugLabel.frame = CGRect(origin: CGPointZero, size: CGSize(width: 300, height: 150))
    }
    
    // MARK: - 懒加载
    /// 调试的lable
    private lazy var debugLabel: UILabel = {
        let label = UILabel()
        label.numberOfLines = 0
        label.font = UIFont.systemFontOfSize(16)

        return label
    }()
}
